package com.ruoyi.goods.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 commodity_product_details
 * 
 * @author kzc
 * @date 2024-03-09
 */
public class CommodityProductDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Integer productId;

    private Integer isExcellent;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String productDescription;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal productPrice;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;



    /** 发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseTime;

    /** 商品损伤情况 */
    @Excel(name = "商品损伤情况")
    private String damage;

    /** 商品类目 */
    @Excel(name = "商品类目")
    private Integer categoryId;

    /** 图片集合 */
    @Excel(name = "图片集合")
    private Integer imgId;

    /** 状态（1上架,2下架,3,待审核,4已审核） */
    @Excel(name = "状态", readConverterExp = "1=上架,2下架,3,待审核,4已审核")
    private String status;

    /** 浏览次数 */
    @Excel(name = "浏览次数")
    private Integer browseNum;

    /** 主图 */
    @Excel(name = "主图")
    private String mainimg;

    /** 附图 */
    @Excel(name = "附图")
    private String img1;

    /** 附图 */
    @Excel(name = "附图")
    private String img2;

    /** 附图 */
    @Excel(name = "附图")
    private String img3;

    /** 附图 */
    @Excel(name = "附图")
    private String img4;

    public Integer getIsExcellent() {
        return isExcellent;
    }

    public void setIsExcellent(Integer isExcellent) {
        this.isExcellent = isExcellent;
    }

    public void setProductId(Integer productId)
    {
        this.productId = productId;
    }

    public Integer getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductDescription(String productDescription) 
    {
        this.productDescription = productDescription;
    }

    public String getProductDescription() 
    {
        return productDescription;
    }
    public void setProductPrice(BigDecimal productPrice) 
    {
        this.productPrice = productPrice;
    }

    public BigDecimal getProductPrice() 
    {
        return productPrice;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }
    public void setPurchaseTime(Date purchaseTime) 
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime() 
    {
        return purchaseTime;
    }
    public void setDamage(String damage) 
    {
        this.damage = damage;
    }

    public String getDamage() 
    {
        return damage;
    }
    public void setCategoryId(Integer categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Integer getCategoryId() 
    {
        return categoryId;
    }
    public void setImgId(Integer imgId) 
    {
        this.imgId = imgId;
    }

    public Integer getImgId() 
    {
        return imgId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setBrowseNum(Integer browseNum) 
    {
        this.browseNum = browseNum;
    }

    public Integer getBrowseNum() 
    {
        return browseNum;
    }
    public void setMainimg(String mainimg) 
    {
        this.mainimg = mainimg;
    }

    public String getMainimg() 
    {
        return mainimg;
    }
    public void setImg1(String img1) 
    {
        this.img1 = img1;
    }

    public String getImg1() 
    {
        return img1;
    }
    public void setImg2(String img2) 
    {
        this.img2 = img2;
    }

    public String getImg2() 
    {
        return img2;
    }
    public void setImg3(String img3) 
    {
        this.img3 = img3;
    }

    public String getImg3() 
    {
        return img3;
    }
    public void setImg4(String img4) 
    {
        this.img4 = img4;
    }

    public String getImg4() 
    {
        return img4;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("productDescription", getProductDescription())
            .append("productPrice", getProductPrice())
            .append("userId", getUserId())
            .append("publishTime", getPublishTime())
            .append("purchaseTime", getPurchaseTime())
            .append("damage", getDamage())
            .append("categoryId", getCategoryId())
            .append("imgId", getImgId())
            .append("status", getStatus())
            .append("browseNum", getBrowseNum())
            .append("mainimg", getMainimg())
            .append("img1", getImg1())
            .append("img2", getImg2())
            .append("img3", getImg3())
            .append("img4", getImg4())
            .toString();
    }
}
